package cn.kmsoft.jssc.service;

import cn.kmsoft.jssc.entity.analyse.CustomOverlay;
import cn.kmsoft.jssc.entity.analyse.DlhyAnalyseParam;
import cn.kmsoft.jssc.entity.dlhy.DlhyEntity;
import cn.kmsoft.common.ResInfo;
import cn.kmsoft.stgeometry.landm.StgeoFeature;
import org.geotools.feature.SchemaException;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author : cqwensten
 * @description : todo
 * @email : cqwensten@163.com
 * @date : 2023/1/28
 */
public interface DlhyService {

    public List<CustomOverlay> overlayDlhy(String projectId, DlhyAnalyseParam dlhyAnalyseParam);

    public List<CustomOverlay> overlayBgdc(String projectId, DlhyAnalyseParam dlhyAnalyseParam);

    public ResInfo doPreDlhy(String taskId);

    public ResInfo doAfterDlhy(String taskId);

    public void saveDlhyListAsNewSHP(String taskId, int wkid, List<DlhyEntity> dlhyEntities, String filePath) throws SchemaException, IOException;
    public void saveStgeoFeatureAsNewSHP(String taskId, int wkid, Map<String, StgeoFeature> stgeoFeatureMap, Map<String, String> properDefs,
                                         String filePath) throws SchemaException, IOException;
}
